package a.h;

import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import java.beans.PropertyChangeListener;
import java.util.Vector;

public class kd
  extends Vector
  implements xc
{
  public static final String a = "OptionSection.context";
  public static final String b = "OptionSection.longDescription";
  public static final String c = "OptionSection.expandedTracker";
  String d;
  private final vb e;
  public static boolean f;
  
  public kd(String paramString)
  {
    this.d = paramString;
    this.e = new vb(this);
  }
  
  public Object a(String paramString)
  {
    return this.e.a(paramString);
  }
  
  public void b(String paramString)
  {
    this.e.b(paramString);
  }
  
  public void a(String paramString, Object paramObject)
  {
    this.e.a(paramString, paramObject);
  }
  
  public String a()
  {
    return this.d;
  }
  
  public JComponent a(int paramInt)
  {
    return a(paramInt, null, null);
  }
  
  public JComponent a(int paramInt, ob paramob, String paramString)
  {
    int j = ec.t;
    boolean bool = ec.s;
    if ((j != 0) || (a() != null)) {
      if (j != 0) {}
    }
    String str1 = a().length() > 0 ? a() : null;
    if (((j != 0) || (paramString != null)) && ((j != 0) || (paramString.length() > 0)))
    {
      if (j == 0) {
        if (str1 != null)
        {
          if (j != 0) {
            break label115;
          }
          str1 = paramString + "." + str1;
          if (!bool) {
            break label117;
          }
        }
      }
      label115:
      str1 = paramString;
    }
    label117:
    JPanel localJPanel = new JPanel();
    localJPanel.setBorder(BorderFactory.createEmptyBorder(6, 6, 0, 6));
    localJPanel.setLayout(new GridBagLayout());
    GridBagConstraints localGridBagConstraints1 = new GridBagConstraints();
    GridBagConstraints localGridBagConstraints2 = new GridBagConstraints();
    GridBagConstraints localGridBagConstraints3 = new GridBagConstraints();
    localGridBagConstraints1.gridy = 0;
    localGridBagConstraints1.anchor = 18;
    localGridBagConstraints1.fill = 1;
    localGridBagConstraints1.gridwidth = 1;
    localGridBagConstraints1.gridheight = 1;
    localGridBagConstraints1.weightx = 0.0D;
    localGridBagConstraints1.weighty = 0.0D;
    localGridBagConstraints1.gridx = 0;
    localGridBagConstraints1.insets = new Insets(1, 6, 4, 4);
    localGridBagConstraints2.gridy = 0;
    localGridBagConstraints2.anchor = 18;
    localGridBagConstraints2.fill = 2;
    localGridBagConstraints2.gridwidth = 1;
    localGridBagConstraints2.gridheight = 1;
    localGridBagConstraints2.weightx = 1.0D;
    localGridBagConstraints2.weighty = 0.0D;
    localGridBagConstraints2.gridx = 1;
    localGridBagConstraints2.insets = new Insets(1, 3, 4, 6);
    localGridBagConstraints3.anchor = 18;
    localGridBagConstraints3.fill = 1;
    localGridBagConstraints3.gridwidth = 2;
    localGridBagConstraints3.gridheight = 1;
    localGridBagConstraints3.weightx = 1.0D;
    localGridBagConstraints3.weighty = 0.0D;
    localGridBagConstraints3.gridx = 0;
    localGridBagConstraints3.gridy = 0;
    localGridBagConstraints3.insets = new Insets(1, 6, 4, 6);
    int i = 0;
    label671:
    label673:
    label706:
    label857:
    label872:
    label874:
    do
    {
      if (i >= size()) {
        break;
      }
      localObject1 = b(i);
      if (j == 0) {
        if ((localObject1 instanceof qc))
        {
          localGridBagConstraints3.weighty = 10.0D;
          localGridBagConstraints2.fill = 1;
          localGridBagConstraints3.fill = 1;
          localGridBagConstraints2.weighty = 10.0D;
        }
      }
      String str2 = ((ec)localObject1).e();
      if ((str2 == null) && (paramob != null))
      {
        localObject2 = ((ec)localObject1).d();
        str2 = paramob.b(str1 + "." + (String)localObject2 + ".TOOLTIP");
        if (((j != 0) || (str2 != null)) && (str2.endsWith("TOOLTIP"))) {
          str2 = null;
        }
      }
      a_ locala_ = new a_();
      if (j == 0) {
        if (((ec)localObject1).g())
        {
          Action localAction = null;
          String str3 = ((ec)localObject1).d();
          if (paramob != null)
          {
            if (j == 0) {
              if (a() != null)
              {
                if (j != 0) {
                  break label671;
                }
                if (a().length() > 0)
                {
                  if (j != 0) {
                    break label706;
                  }
                  str3 = paramob.b(paramString + "." + a() + "." + str3);
                  if (!bool) {
                    break label673;
                  }
                }
              }
            }
            str3 = paramob.b(paramString + "." + str3);
            localObject3 = str1 + "." + ((ec)localObject1).d() + ".ONLINE_HELP.URL";
            localAction = paramob.c((String)localObject3);
          }
          Object localObject3 = new JLabel(str3, 2);
          ((JLabel)localObject3).setVerticalAlignment(1);
          ((JLabel)localObject3).setText(str3);
          if (j == 0)
          {
            localJPanel.add((Component)localObject3, localGridBagConstraints1);
            if (localAction != null)
            {
              ((JLabel)localObject3).addMouseListener(locala_);
              ((JLabel)localObject3).putClientProperty("HELP_ACTION_KEY", localAction);
            }
          }
          localObject2 = ((ec)localObject1).a(paramob, str1);
          localJPanel.add((Component)localObject2, localGridBagConstraints2);
          ((JLabel)localObject3).setLabelFor((Component)localObject2);
          if (j != 0) {
            break label874;
          }
          if (str2 == null) {
            break label872;
          }
          if (j != 0) {
            break label874;
          }
          if (str2.trim().length() <= 0) {
            break label872;
          }
          ((JLabel)localObject3).setToolTipText(str2);
          if (j != 0) {
            break label857;
          }
          if (!bool) {
            break label872;
          }
        }
      }
      Object localObject2 = ((ec)localObject1).a(paramob, str1);
      localJPanel.add(((ec)localObject1).a(paramob, str1), localGridBagConstraints3);
      if ((j != 0) || (str2 != null))
      {
        if (j != 0) {
          break label956;
        }
        if ((str2.trim().length() > 0) && ((j != 0) || (((JComponent)localObject2).getToolTipText() == null))) {
          ((JComponent)localObject2).setToolTipText(str2);
        }
      }
      localGridBagConstraints1.gridy += 1;
      localGridBagConstraints2.gridy += 1;
      localGridBagConstraints3.gridy += 1;
      if (j == 0)
      {
        if ((localObject1 instanceof qc))
        {
          localGridBagConstraints3.weighty = 0.0D;
          localGridBagConstraints2.weighty = 0.0D;
          localGridBagConstraints2.fill = 2;
          localGridBagConstraints3.fill = 2;
        }
        i++;
      }
    } while (!bool);
    label956:
    GridBagConstraints localGridBagConstraints4 = new GridBagConstraints();
    localGridBagConstraints4.weightx = 1.0D;
    localGridBagConstraints4.weighty = 1.0D;
    localGridBagConstraints4.gridwidth = 2;
    localGridBagConstraints4.gridheight = 1;
    localGridBagConstraints4.fill = 1;
    localGridBagConstraints4.gridx = 0;
    localGridBagConstraints4.gridy = localGridBagConstraints1.gridy;
    Object localObject1 = new JPanel();
    ((JPanel)localObject1).setMinimumSize(new Dimension(0, 0));
    localJPanel.add((Component)localObject1, localGridBagConstraints4);
    return localJPanel;
  }
  
  public int b()
  {
    return size();
  }
  
  public ec b(int paramInt)
  {
    return (ec)elementAt(paramInt);
  }
  
  public void c(PropertyChangeListener paramPropertyChangeListener)
  {
    this.e.c(paramPropertyChangeListener);
  }
  
  public void d(PropertyChangeListener paramPropertyChangeListener)
  {
    this.e.d(paramPropertyChangeListener);
  }
  
  public void c(String paramString, PropertyChangeListener paramPropertyChangeListener)
  {
    this.e.c(paramString, paramPropertyChangeListener);
  }
  
  public void d(String paramString, PropertyChangeListener paramPropertyChangeListener)
  {
    this.e.d(paramString, paramPropertyChangeListener);
  }
  
  private static final class a_
    implements MouseListener, ActionListener
  {
    private JPopupMenu a;
    private Action b;
    private Object d;
    private String e;
    private JMenuItem f = new JMenuItem();
    
    public a_()
    {
      this.f.addActionListener(this);
      this.a = new JPopupMenu();
      this.a.add(this.f);
    }
    
    public void mouseClicked(MouseEvent paramMouseEvent)
    {
      if (paramMouseEvent.isPopupTrigger()) {
        a(paramMouseEvent);
      }
    }
    
    public void mouseEntered(MouseEvent paramMouseEvent)
    {
      if (paramMouseEvent.isPopupTrigger()) {
        a(paramMouseEvent);
      }
    }
    
    public void mouseExited(MouseEvent paramMouseEvent)
    {
      if (paramMouseEvent.isPopupTrigger()) {
        a(paramMouseEvent);
      }
    }
    
    public void mousePressed(MouseEvent paramMouseEvent)
    {
      if (paramMouseEvent.isPopupTrigger()) {
        a(paramMouseEvent);
      }
    }
    
    public void mouseReleased(MouseEvent paramMouseEvent)
    {
      if (paramMouseEvent.isPopupTrigger()) {
        a(paramMouseEvent);
      }
    }
    
    public void a(MouseEvent paramMouseEvent)
    {
      this.d = paramMouseEvent.getSource();
      this.b = ((Action)((JComponent)paramMouseEvent.getComponent()).getClientProperty("HELP_ACTION_KEY"));
      this.f.setText((String)this.b.getValue("Name"));
      this.a.show(paramMouseEvent.getComponent(), paramMouseEvent.getX(), paramMouseEvent.getY());
    }
    
    public void actionPerformed(ActionEvent paramActionEvent)
    {
      this.b.actionPerformed(new ActionEvent(this.d, 1001, (String)this.b.getValue("ActionCommandKey")));
    }
  }
}



/* Location:           E:\idea\

 * Qualified Name:     a.h.kd

 * JD-Core Version:    0.7.0.1

 */